package com.wugenqiang.common.enums;

/**
 * @Classname ResponseStatus
 * @Description ResponseStatus
 * @Date 2019/1/28 18:27
 * @Created by WuGenQiang//fighting!!
 */
public enum ResponseStatus {

    SUCCESS(200, "OK"),

    EMPTY(204, "No Content"),

    ERROR(500, "Internal Server Error"),

    NOTFOUND(404, "Not Found");

    private Integer code;
    private String message;

    ResponseStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
